﻿using RndMaterialDisposalService.Models;
using RndMaterialDisposalService.Models.RequestModel;
using System.Security.Claims;

namespace RndMaterialDisposalService.Services.Interface
{
    /// <summary>
    /// 
    /// </summary>
    public interface ITokenService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="expireTime"></param>
        /// <returns></returns>
        Task<string> CreateToken(DateTime expireTime);
        /// <summary>
        /// 校验token
        /// </summary>
        /// <param name="token"></param>
        /// <param name="principal"></param>
        /// <returns></returns>
        Task<bool> VerifyJwtToken(string token);
        /// <summary>
        /// 后期企业微信token
        /// </summary>
        /// <returns></returns>
        public Task<string> GetWeixinToken();

    }
}
